<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<title>用户注册</title>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="{{.Prefix}}/static/style.css">
    <script src="{{.Prefix}}/static/jquery.min.js"></script>
    <script src="{{.Prefix}}/static/md5.js"></script>
    <script>
function clickme(){
    pwd = $("#pwd").val()
    pwd1 = $("#pwd1").val()
    if(pwd != pwd1){
        alert("密码和验证值不一致");
        return;
    }
	document.getElementById("pwd").value = hex_md5(pwd);
	document.getElementById("regform").submit();
}
	</script>
</head>

<body>
<div style="width:800px;margin:auto;text-align:left;margin-top:30px;">
<a href="{{.Prefix}}/">首页</a>
<H3>注册新用户：</H3>
<form method="POST" action="{{.Prefix}}/user/save" id="regform">
用户名：<input type="text" name="name" id="name"/><br/>
密　码：<input type="password" name="pwd" id="pwd"/><br/>
验　证：<input type="password" name="pwd1" id="pwd1"/><br/>
<button type="button" onclick="clickme();">提交</button>
</form>
</div>
</body>
</html>
